package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbCollection;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/** 收藏
 * @author wuye
 */
@Mapper
@Repository
public interface TbCollectionDao extends BaseDao<TbCollection>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbCollection record);

    int insertSelective(TbCollection record);

    TbCollection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbCollection record);

    int updateByPrimaryKey(TbCollection record);

    TbCollection queryByCommodity(String uid,Integer commodityid);

    List<TbCollection> queryPageList(Page<TbCollection> pageUtil, Map<String, Object> map);
}